<?php if(!defined('BASEPATH')) exit('No direct script access allowed');

class menu_module extends CI_Module{
    
    public $menu_model;
            
    function __construct() {
        parent::__construct();
        $this->load->model("menu_model");
    }
    
    function get_menu()
    {
        $this->menu_model = new Menu_model();
        $data['menu']['trang-suc-bac'] = $this->menu_model->get_list_by_parent_id("55"); //trang sức bạc
        $this->menu_model = new Menu_model();
        $data['menu']['noi-that-trang-tri'] = $this->menu_model->get_list_by_parent_id("95"); //nội thất trang trí
        $this->menu_model = new Menu_model();
        $data['menu']['me-va-be'] = $this->menu_model->get_list_by_parent_id("89"); //mẹ và bé
        $this->menu_model = new Menu_model();
        $data['menu']['tui-xach-phu-kien'] = $this->menu_model->get_list_by_parent_id("84"); //túi xách phụ kiện
        
        $this->smarty->assign('data',$data);
        $this->smarty->view('frontend/subs/main_menu');
    }
    
}
?>